Ext.namespace('VAS');
VAS.AuditOpinionPanel = Ext.extend(Ext.FormPanel, {
	initComponent : function() {
		var config={						
			height        : 200,
            frame         : true,    
		    minButtonWidth: 50,
            layout        : 'column',
			items:[{
				layout         : "form",
				columnWidth    : 1,
				bodyStyle      : 'padding:15px 15px 0 ',
				items: [
					{
	                    xtype          : 'label',
	                    fieldLabel	   : '审核意见',
	                    width          : 400,
	                    maxLength	   : 200,
	                    allowBlank		:false,
	                    blankText		:'请填写审核意见',
                   		name           : 'idea'
                   		,id				: 'idea'
					}
				]
			}]
		};
		Ext.apply(this, config);
		Ext.apply(this.initialConfig, config);
		VAS.AuditOpinionPanel.superclass.initComponent.apply(this, arguments);
	}
	,afterRender:function(){
		VAS.AuditOpinionPanel.superclass.afterRender.apply(this,arguments);
		 if(this.viewUrl!=='undefined'){
		 	this.getForm().findField('idea').setValue('aa');
		 }
	}
})

VAS.AuditOpinionWindow = Ext.extend(Ext.Window,{
	manager:wgroup,
	initComponent : function() {
	 	var _this=this;
	 	var thisConfig={
	 		width  : 600, 
	 		items  : new VAS.AuditOpinionPanel({url:_this.saveUrl,viewUrl:_this.viewUrl,postdata:_this.getPostdata}),
	 		buttons : [{
            	xtype:'button',
            	text:'关闭',
            	handler : function() {
            		_this.close();	
            	}
	 		}]
	     };
		 Ext.apply(this, thisConfig);
		 Ext.apply(this.initialConfig, thisConfig);
		 VAS.AuditOpinionWindow.superclass.initComponent.apply(this);
	}
});

